package org.ehe.finance.voucher.domain.bo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import lombok.Data;

/**
 * 凭证类别查询Bo
 * @author :zhangnn
 * @className :VoucherTypeQueryBo
 * @description: TODO
 * @date 2025-08-22 17:43:49
 */
@Data
public class VoucherTypeQueryBo {
    @Schema(description = "凭证类别编码")
    private String typeCode;

    @Schema(description = "凭证类别名称")
    private String typeName;

    @Schema(description = "凭证字")
    private String prefix;

    @Schema(description = "状态")
    private Integer status;

    @Schema(description = "当前页码")
    @Min(value = 1, message = "页码必须大于0")
    private Long current = 1L;

    @Schema(description = "每页数量")
    @Min(value = 1, message = "每页数量必须大于0")
    @Max(value = 500, message = "每页数量不能超过500")
    private Long size = 10L;
}
